const express = require('express');
const router = express.Router();

const userRoutes = require('./userRoutes.js')
router.use(userRoutes);  // 注册用户路由

const courseRoutes = require('./getCourseList.js');
router.use(courseRoutes); // 注册课程路由

const chapterRoutes = require('./getChapterList.js');
router.use(chapterRoutes); // 注册课程路由

const getQuestionRoutes = require('./getTestQuestion.js');
router.use(getQuestionRoutes); // 注册获取题目路由

const adminLogin = require('./adminLogin');
router.use(adminLogin); // 管理员登录路由

const teacherGetCourses = require('./teacherGetCourses');
router.use(teacherGetCourses); // 教师获取课程列表路由

const teacherAddCourse = require('./teacherAddCourse');
router.use(teacherAddCourse);// 教师新增课程路由

const adminCourseReview = require('./adminCourseReview');
router.use(adminCourseReview); // 管理员审批课程的路由

const submitAnswers = require('./submitAnswer');
router.use(submitAnswers); // 提交答案路由

const questionType = require('./questionType');
router.use(questionType); //对题目类型进行管理

const getAvatarUrl = require('./getAvatarUrl');
router.use(getAvatarUrl); // 获得用户头像url路由

const uploadAvatar = require('./uploadAvatar');
router.use(uploadAvatar); // 上传/更新用户头像

const uploadCourseImage = require('./uploadCourseImage');
router.use(uploadCourseImage); // 上传/更新课程图片

const getCourseInfo = require('./getCourseInfo');
router.use(getCourseInfo);

const getWrongQuestion = require('./getWrongQuestion');
router.use(getWrongQuestion);

module.exports = router;
